<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <!--
      HTML 和 JSP 切换
      在 web.xml 中配置
      <welcome-file-list>
             <welcome-file>index.html</welcome-file>
      </welcome-file-list>
      -->
</head>
<body>
    <h3>Hello Servlet 我是HTML文件</h3>
    <a href="hello?username=ddone&password=456">跳转到HelloServlet</a>
    <br>
    <a href="second">跳转到SecondServlet</a>
    <br>
    <a href="charset?uname=中国&pwd=xxx">跳转到charset Servlet</a>
    <hr>
    <h3>测试乱码</h3>
    <form action="charset" method="post">
        <table>
            <tr>
                <td>姓名: </td>
                <td><input type="text" name="name"></td>
            </tr>
            <tr>
                <td>性别: </td>
                <td><input type="text" name="sex"></td>
            </tr>
            <tr>
                <td></td>
                <td> <button type="submit">提交</button></td>
            </tr>

        </table>
    </form>
    <hr>
    <h3>测试重定向</h3>
<!--    <a href="red">点击跳转到百度~</a>-->
    <a href="red">重定向到HelloServlet</a>
    <hr>
    <h3>测试数据共享~</h3>
    <a href="servletA">ServletA</a>
</html>